package com.itheima.redbaby.dao.domain;

import java.io.Serializable;

import com.itheima.redbaby.dao.DBHelper;
import com.itheima.redbaby.dao.annotation.Column;
import com.itheima.redbaby.dao.annotation.Id;
import com.itheima.redbaby.dao.annotation.TableName;

@TableName(DBHelper.TABLE_ADDRESS)
public class AddressDo implements Serializable{
	
	@Id(autoincrement=true)
	@Column(key=DBHelper.TABLE_ADDRESS_ID)
	private int id;
	@Column(key=DBHelper.TABLE_ADDRESS_NAME)
	private String name;
	@Column(key=DBHelper.TABLE_ADDRESS_PHONENUMBER)
	private String phonenumber;
	@Column(key=DBHelper.TABLE_ADDRESS_FIXEDTEL)
	private String fixedtel;
	@Column(key=DBHelper.TABLE_ADDRESS_PROVINCEID)
	private int provinceId;
	@Column(key=DBHelper.TABLE_ADDRESS_CITYID)
	private int cityId;
	@Column(key=DBHelper.TABLE_ADDRESS_AREAID)
	private int areaId;
	@Column(key=DBHelper.TABLE_ADDRESS_AREADETAIL)
	private String areaDetail;
	@Column(key=DBHelper.TABLE_ADDRESS_ZIPCODE)
	private String zipCode;
	@Column(key=DBHelper.TABLE_ADDRESS_STATE)
	private int state;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhonenumber() {
		return phonenumber;
	}
	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}
	public String getFixedtel() {
		return fixedtel;
	}
	public void setFixedtel(String fixedtel) {
		this.fixedtel = fixedtel;
	}
	public int getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(int provinceId) {
		this.provinceId = provinceId;
	}
	public int getCityId() {
		return cityId;
	}
	public void setCityId(int cityId) {
		this.cityId = cityId;
	}
	public int getAreaId() {
		return areaId;
	}
	public void setAreaId(int areaId) {
		this.areaId = areaId;
	}
	public String getAreaDetail() {
		return areaDetail;
	}
	public void setAreaDetail(String areaDetail) {
		this.areaDetail = areaDetail;
	}
	public String getZipCode() {
		return zipCode;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

}
